package org.jeecg.modules.qy.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.qy.entity.QyCommodity;
import org.jeecg.modules.qy.entity.vo.SourceDataVo;
import org.jeecg.modules.qy.entity.vo.VisitUserVo;

import java.util.List;

/**
 * @Description: 商品表
 * @Author: jeecg-boot
 * @Date:   2021-03-10
 * @Version: V1.0
 */
public interface IQyCommodityService extends IService<QyCommodity> {

    Result<String> saveComodity(QyCommodity commodity,String companyId);

    Result<String> updateComodity(QyCommodity commodity);

    QyCommodity getComodity(String id,String companyId);

    IPage<SourceDataVo> findSourceDataList(SourceDataVo vo, int pageNo, int pageSize);

    IPage<VisitUserVo> findVisitUserList(VisitUserVo vo, int pageNo, int pageSize);

    long countByCommodityType(int commodityType,String companyId);

    List<QyCommodity> findByCompanyId(String companyId);

    Result<?> findUsersSpecils(String commodityId,int pageNo,int pageSize);

    Result<?> findUsersProvince(String commodityId,int pageNo,int pageSize);

    Result<?> findUsersProvinceCity(String commodityId,String province,int pageNo,int pageSize);

    Result<?> findUsersVisitDevice(String commodityId,int pageNo,int pageSize);


}
